import { ElePosition, Widget } from '@web/com/models/appConfig';
import { LazyExoticComponent, MouseEvent } from 'react';

export interface TreeWidgetProps {
  widgets:Widget[];
  isRoot?:boolean;
  menuClickCallBack:(e:MouseEvent, widgetItem:Widget)=>void;
}

export interface WidgetLayoutProps{
  widgets:Widget[];
  menuClickCallBack:(e:MouseEvent, widgetItem:Widget)=>void;
  position?:ElePosition;
}

export interface WidgetsContainerInfo{
  id:string;
  widgetsContainer:LazyExoticComponent<React.ComponentType<any>>;
  wProps:WidgetLayoutProps;
}
